package com.stylefeng.guns.rest.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-06-10
 */
@TableName("wz_goods")
public class WzGoods extends Model<WzGoods> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Long goodsId;
    /**
     * 商品标题
     */
    private String title;
    /**
     * 商品副标题
     */
    private String subtitle;
    /**
     * 商品分类id
     */
    @TableField("goods_type_id")
    private Long goodsTypeId;
    /**
     * 默认商品编码
     */
    @TableField("default_product_id")
    private Long defaultProductId;
    /**
     * 商品分类标签id
     */
    @TableField("goods_type_tag_id")
    private String goodsTypeTagId;
    /**
     * 商品标识标签id
     */
    @TableField("goods_sing_tag_id")
    private String goodsSingTagId;
    /**
     * 品牌id
     */
    @TableField("goods_brand_id")
    private Long goodsBrandId;
    /**
     * 规格
     */
    private String specification;
    /**
     * 排序
     */
    private Integer rank;
    /**
     * 已售
     */
    private Integer sold;
    /**
     * 说明
     */
    private String description;
    /**
     * 图片
     */
    private String pic;
    /**
     * 多图片
     */
    private String pics;
    /**
     * 详情
     */
    private String details;
    /**
     * 状态
     */
    private Integer states;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public Long getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(Long goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    public Long getDefaultProductId() {
        return defaultProductId;
    }

    public void setDefaultProductId(Long defaultProductId) {
        this.defaultProductId = defaultProductId;
    }

    public String getGoodsTypeTagId() {
        return goodsTypeTagId;
    }

    public void setGoodsTypeTagId(String goodsTypeTagId) {
        this.goodsTypeTagId = goodsTypeTagId;
    }

    public String getGoodsSingTagId() {
        return goodsSingTagId;
    }

    public void setGoodsSingTagId(String goodsSingTagId) {
        this.goodsSingTagId = goodsSingTagId;
    }

    public Long getGoodsBrandId() {
        return goodsBrandId;
    }

    public void setGoodsBrandId(Long goodsBrandId) {
        this.goodsBrandId = goodsBrandId;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Integer getSold() {
        return sold;
    }

    public void setSold(Integer sold) {
        this.sold = sold;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getPics() {
        return pics;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public Integer getStates() {
        return states;
    }

    public void setStates(Integer states) {
        this.states = states;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.goodsId;
    }

    @Override
    public String toString() {
        return "WzGoods{" +
        "goodsId=" + goodsId +
        ", title=" + title +
        ", subtitle=" + subtitle +
        ", goodsTypeId=" + goodsTypeId +
        ", defaultProductId=" + defaultProductId +
        ", goodsTypeTagId=" + goodsTypeTagId +
        ", goodsSingTagId=" + goodsSingTagId +
        ", goodsBrandId=" + goodsBrandId +
        ", specification=" + specification +
        ", rank=" + rank +
        ", sold=" + sold +
        ", description=" + description +
        ", pic=" + pic +
        ", pics=" + pics +
        ", details=" + details +
        ", states=" + states +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
